package com.nulldev.util.scripting.ScriptAPI.baseJS.cupJS.representation;

import java.util.List;

import com.nulldev.util.data.Variables;
import com.nulldev.util.scripting.cup.instructions.CupInstruction;

public class CUPJSFunction {

	private final List<CupInstruction> instructions;
	private final String name;

	public CUPJSFunction(final String name, final List<CupInstruction> instructions) {
		this.name = Variables.requireNonNullObject(name, "name");
		this.instructions = Variables.requireNonNullObject(instructions, "instructions");
	}
}
